
<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="#profile">Profile</a></li>
    <li><a href="#groupchecks">group checks</a></li>
    <li><a href="#groupreply">group reply</a></li>
    <li><a href="#users">users list</a></li>
</ul>

<div class="tab-content">
    <div class="tab-pane active" id="profile">
        <p id="notice"><%= notice %></p>

        <p>
        <strong>Name:</strong>
        <%= @group.name %>
        </p>

        <%= link_to 'Edit', edit_group_path(@group) %> |
        <%= link_to 'Back', groups_path %>

    </div>
    <div class="tab-pane" id="groupchecks">
        <% @group.radgroupchecks.each do |rg| %>
            <%= rg.attr %> 
            <%= rg.op %>
            <%= rg.value %>
        <% end %>
    </div>
    <div class="tab-pane" id="groupreply">
        <% @group.radgroupreplies.each do |rg| %>
            <%= rg.attr %> 
            <%= rg.op %>
            <%= rg.value %>
        <% end %>
    </div>
    <div class="tab-pane" id="users">
        <% @group.users.each do |u| %>
            <%= u.username %>
        <% end %>
    </div>
</div>

